<%@ Page Language="vb" AutoEventWireup="false" Codebehind="FrmListaSolicitudModificar.aspx.vb"
    Inherits="TGB.FrmListaSolicitudModificar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Lista solicitudes Editable</title>
</head>
<body style="left: 0px; position: absolute; top: 0px">
    <form id="form1" runat="server">
        <div>
            <table style="width: 700px; height: 500px; background-image: url(imagenes/bg.jpg);
                background-repeat: repeat-x; border-collapse: separate;">
                <tr>
                    <td style="background-repeat: repeat-x; height: 10px; width: 758px;" align="center" valign="middle">
                        <img alt="" src="../imagenes/EitiSoft.jpg" style="width: 256px; height: 80px" />
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="3" style="background-repeat: repeat-x; height: 10px; width: 703px;"
                        valign="middle">
                        <asp:Label ID="Label1" runat="server" Style="font-weight: bold; font-size: 16px;
                            font-family: calibri" Text="Solicitud de Servicios" Width="306px"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="height: 160px; width: 758px" align="center" valign="top">
                        <asp:Label ID="LblCliente" runat="server" Text="Cliente:" Width="89px" style="vertical-align: top"></asp:Label>&nbsp;<asp:DropDownList
                            ID="CboClientes" runat="server" Width="247px" AutoPostBack="True" AppendDataBoundItems="True" style="vertical-align: top">
                            <asp:ListItem></asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lblEstado" runat="server" Text="Estado" Width="102px" style="vertical-align: top"></asp:Label>
                        <asp:DropDownList ID="CboEstado" runat="server" AutoPostBack="True" Width="137px" AppendDataBoundItems="True" style="vertical-align: top">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem>Pendiente</asp:ListItem>
                            <asp:ListItem>Cumplida</asp:ListItem>
                            <asp:ListItem>Suspendida</asp:ListItem>
                        </asp:DropDownList>
                        <asp:GridView ID="GVSolicitudes" runat="server" AutoGenerateColumns="False" CellPadding="4"
                            ForeColor="Black" GridLines="Horizontal" Height="99px" PageSize="8" Width="700px"
                            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                            AllowPaging="True" CellSpacing="1">
                            <FooterStyle BackColor="#CCCC99" ForeColor="Black" Font-Names="Calibri" Font-Size="12px" />
                            <Columns>
                                <asp:TemplateField ShowHeader="False" Visible="False">
                                    <ItemTemplate>
                                        &nbsp;<asp:HiddenField ID="HFCodigoSolicitud" runat="server" Value='<%# bind("CodigoSolicitudServicios") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="N&#186; Solicitud ">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblNumeroSolicitud" runat="server" Text='<%# bind("CodigoSolicitudServicios") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="FechaSolicitud">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FechaSolicitud") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LblFechaSolicitud" runat="server" Text='<%# Bind("FechaSolicitud","{0:d}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="FechaRealicacion">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FechaRealicacion") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LblFechaRealizacion" runat="server" Text='<%# Bind("FechaRealizacion","{0:d}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Descripcion">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Descripcion") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LblDescripcion" runat="server" Text='<%# Bind("Descripcion") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="EstadoSolicitud">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="CboEstadoG" runat="server" Width="152px">
                                            <asp:ListItem>Pendiente</asp:ListItem>
                                            <asp:ListItem>Cumplida</asp:ListItem>
                                            <asp:ListItem>Suspendida</asp:ListItem>
                                            <asp:ListItem Value="-1">Seleccionar</asp:ListItem>
                                        </asp:DropDownList>&nbsp;
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LblEstadoSolicitud" runat="server" Text='<%# Bind("EstadoSolicitud") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="CodigoUnidad">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("CodigoTUnidad") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="LblCodigoTUnidad" runat="server" Text='<%# Bind("TipoUnidad") %>'></asp:Label>
                                        <asp:HiddenField ID="HFCodigoTunidad" runat="server" Value='<%# Bind("CodigoTUnidad") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Cliente">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("CodigoCliente") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblRazonSocial" runat="server" Text='<%# Bind("cliente") %>'></asp:Label>
                                        <asp:HiddenField ID="HFCodigoCliente" runat="server" Value='<%# bind("CodigoCliente") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField ShowHeader="False" Visible="False">
                                    <EditItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                            Text="Update"></asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                            Text="Cancel"></asp:LinkButton>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                                            Text="Edit"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Suspender">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        &nbsp;<asp:LinkButton ID="lnkSuspender" runat="server" CommandName="Select">Suspender</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle Font-Names="Calibri" Font-Size="12px" />
                            <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" Font-Names="Calibri"
                                Font-Size="12px" />
                            <EditRowStyle Font-Overline="True" />
                            <EmptyDataTemplate>
                                Sin Registros<br />
                            </EmptyDataTemplate>
                        </asp:GridView>
                        &nbsp; &nbsp;
                        <asp:LinkButton ID="lnkReporteSolicitudes" runat="server" CausesValidation="False">Reporte</asp:LinkButton>
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="" onclick="javaScript:(window.close())">
                            Salir</a></td>
                </tr>
                <tr>
                    <td align="center" valign="middle" style="width: 758px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right" valign="middle" style="height: 10px; background-repeat: repeat-x;
                        background-image: url(imagenes/bg.jpg); width: 758px;">
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
